]> dgit.raspbian.org Git - gnome-shell.git/commit
workspace: Round the corners of the wallpaper
authorJonas Dreßler <verdre@v0yd.nl>
Mon, 8 Feb 2021 15:33:06 +0000 (16:33 +0100)
committerMarge Bot <marge-bot@gnome.org>
Thu, 18 Feb 2021 20:59:30 +0000 (20:59 +0000)
commit63cf60b731edced67ec14c87492bf08783ac7d3c
treeccd30ad4d2fe3c47494ca87bbba864a11a343f58
parent4ba48b02e85ef84d67ff63eccdc283fee2f339c4
workspace: Round the corners of the wallpaper

As planned and shown in the mockups for GNOME 40, round the corners of
the background wallpaper of workspaces.

To do that we use the new rounded-clipping support of
MetaBackgroundContent and we animate the radius by attaching it to the
stateAdjustment just like everything else.

Because we show only a part of the wallpaper and "cut away" the area of
the panel in WorkspaceBackgrounds vfunc_allocate(), we also need to set
the rounded clips bounding rect to the rectangle we're actually showing,
otherwise the texture would be rounded in the region that's cut away.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1651>
js/ui/workspace.js